import request from "@/apps/admin/utils/request.ts";
// 获取所有场所
export const getVenues = () => {
    return request.get('/api/venues')
}

// 删除场所
export const deleteVenue = (id) => {
    return request.delete(`/api/venues/${id}`)
}

// 更新场所状态（启用/禁用）
export const toggleVenueStatus = (id, active) => {
    return request.post(`/api/venues/${id}/status`, { active })
}

// 生成二维码
export const generateQRCode = (id) => {
    return request.post(`/api/venues/${id}/qrcode`)
}
